package com.mxpio.erp.common.plan.service;

import com.mxpio.erp.common.enums.OrderStatusEnums;
import com.mxpio.erp.common.plan.entity.SalePrediction;
import com.mxpioframework.common.vo.Result;
import com.mxpioframework.system.service.BaseService;
import org.springframework.transaction.annotation.Transactional;

public interface SalePredictionService extends BaseService<SalePrediction> {

    Result<SalePrediction> updateBpmnStatus(SalePrediction salePrediction, OrderStatusEnums.BpmnStatus auditing);

    @Transactional
    Result<SalePrediction> updateCloseStatus(SalePrediction salePrediction, OrderStatusEnums.CloseStatus closeStatus);
}
